package com.m1book.domain;

public class ApplyM1BookException extends Exception {
	private static final long serialVersionUID = -6000055868115195250L;
	
	/**
	 * ABook的状态不允许被申请，比如现在此书正在快递路上。
	 */
	public final static String NOT_AVAILABLE = "NOT_AVAILABLE";
	
	private String message;
	
	public ApplyM1BookException(String message) {
		this.message = message;
	}

	@Override
	public String getMessage() {
		return NOT_AVAILABLE + ": " + message;
	}

}
